<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    
    <script>
        var obj = {
            "stl.SiteName": {
                "prefix": "stl.S",
                "body": [
                    "{stl.SiteName}"
                ],
                "description": "通过{stl.SiteName}实体在模板中显示站点名称"
            },
            "stl.SiteId": {
                "prefix": "stl.S",
                "body": [
                    "{stl.SiteId}"
                ],
                "description": "通过{stl.SiteId}实体在模板中显示站点Id"
            },
            "stl.SiteDir": {
                "prefix": "stl.S",
                "body": [
                    "{stl.SiteDir}"
                ],
                "description": "通过{stl.SiteDir}实体在模板中显示站点文件夹，如果为总站点，值为空"
            },
            "stl.SiteUrl": {
                "prefix": "stl.S",
                "body": [
                    "{stl.SiteUrl}"
                ],
                "description": "通过{stl.SiteUrl}实体在模板中显示站点根目录地址"
            },
            "stl.RootUrl": {
                "prefix": "stl.R",
                "body": [
                    "{stl.RootUrl}"
                ],
                "description": "通过{stl.RootUrl}实体在模板中显示系统根目录地址"
            },
            "stl.CurrentUrl": {
                "prefix": "stl.C",
                "body": [
                    "{stl.CurrentUrl}"
                ],
                "description": "通过{stl.CurrentUrl}实体在模板中显示当前页地址"
            },
            "stl.ChannelUrl": {
                "prefix": "stl.C",
                "body": [
                    "{stl.ChannelUrl}"
                ],
                "description": "通过{stl.ChannelUrl}实体在模板中显示栏目页地址"
            },
            "channel.ChannelId": {
                "prefix": "chann",
                "body": [
                    "{channel.ChannelId}"
                ],
                "description": "通过{channel.ChannelId}实体在模板中显示栏目Id"
            },
            "channel.Title": {
                "prefix": "chann",
                "body": [
                    "{channel.Title}"
                ],
                "description": "通过{channel.Title}实体在模板中显示栏目名称"
            },
            "channel.ChannelIndex": {
                "prefix": "chann",
                "body": [
                    "{channel.ChannelIndex}"
                ],
                "description": "通过{channel.ChannelIndex}实体在模板中显示栏目索引"
            },
            "channel.Content": {
                "prefix": "chann",
                "body": [
                    "{channel.Content}"
                ],
                "description": "通过{channel.Content}实体在模板中显示栏目正文"
            },
            "channel.NavigationUrl": {
                "prefix": "chann",
                "body": [
                    "{channel.NavigationUrl}"
                ],
                "description": "通过{channel.NavigationUrl}实体在模板中显示栏目链接地址"
            },
            "channel.ImageUrl": {
                "prefix": "chann",
                "body": [
                    "{channel.ImageUrl}"
                ],
                "description": "通过{channel.ImageUrl}实体在模板中显示栏目图片地址"
            },
            "channel.AddDate": {
                "prefix": "chann",
                "body": [
                    "{channel.AddDate}"
                ],
                "description": "通过{channel.AddDate}实体在模板中显示栏目添加日期"
            },
            "channel.DirectoryName": {
                "prefix": "chann",
                "body": [
                    "{channel.DirectoryName}"
                ],
                "description": "通过{channel.DirectoryName}实体在模板中显示生成文件夹名称"
            },
            "channel.Group": {
                "prefix": "chann",
                "body": [
                    "{channel.Group}"
                ],
                "description": "通过{channel.Group}实体在模板中显示栏目组别"
            },
            "channel.ItemIndex": {
                "prefix": "chann",
                "body": [
                    "{channel.ItemIndex}"
                ],
                "description": "通过{channel.ItemIndex}实体在模板中显示栏目排序"
            },
            "channel.Keywords": {
                "prefix": "chann",
                "body": [
                    "{channel.Keywords}"
                ],
                "description": "通过{channel.Keywords}实体在模板中显示关键字"
            },
            "channel.Description": {
                "prefix": "chann",
                "body": [
                    "{channel.Description}"
                ],
                "description": "通过{channel.Description}实体在模板中显示页面描述"
            },
            "content.Id": {
                "prefix": "conte",
                "body": [
                    "{content.Id}"
                ],
                "description": "通过{content.Id}实体在模板中显示内容Id"
            },
            "content.Title": {
                "prefix": "conte",
                "body": [
                    "{content.Title}"
                ],
                "description": "通过{content.Title}实体在模板中显示内容标题"
            },
            "content.FullTitle": {
                "prefix": "conte",
                "body": [
                    "{content.FullTitle}"
                ],
                "description": "通过{content.FullTitle}实体在模板中显示内容标题全称"
            },
            "content.Content": {
                "prefix": "conte",
                "body": [
                    "{content.Content}"
                ],
                "description": "通过{content.Content}实体在模板中显示内容正文"
            },
            "content.NavigationUrl": {
                "prefix": "conte",
                "body": [
                    "{content.NavigationUrl}"
                ],
                "description": "通过{content.NavigationUrl}实体在模板中显示内容链接地址"
            },
            "content.ImageUrl": {
                "prefix": "conte",
                "body": [
                    "{content.ImageUrl}"
                ],
                "description": "通过{content.ImageUrl}实体在模板中显示内容图片地址"
            },
            "content.FileUrl": {
                "prefix": "conte",
                "body": [
                    "{content.FileUrl}"
                ],
                "description": "通过{content.FileUrl}实体在模板中显示内容附件地址"
            },
            "content.DownloadUrl": {
                "prefix": "conte",
                "body": [
                    "{content.DownloadUrl}"
                ],
                "description": "通过{content.DownloadUrl}实体在模板中显示内容附件地址(可统计下载量)"
            },
            "content.AddDate": {
                "prefix": "conte",
                "body": [
                    "{content.AddDate}"
                ],
                "description": "通过{content.AddDate}实体在模板中显示内容添加日期"
            },
            "content.LastEditDate": {
                "prefix": "conte",
                "body": [
                    "{content.LastEditDate}"
                ],
                "description": "通过{content.LastEditDate}实体在模板中显示内容最后修改日期"
            },
            "content.Group": {
                "prefix": "conte",
                "body": [
                    "{content.Group}"
                ],
                "description": "通过{content.Group}实体在模板中显示内容组别"
            },
            "content.Tags": {
                "prefix": "conte",
                "body": [
                    "{content.Tags}"
                ],
                "description": "通过{content.Tags}实体在模板中显示内容标签"
            },
            "content.AddUserName": {
                "prefix": "conte",
                "body": [
                    "{content.AddUserName}"
                ],
                "description": "通过{content.AddUserName}实体在模板中显示内容添加人"
            },
            "content.ItemIndex": {
                "prefix": "conte",
                "body": [
                    "{content.ItemIndex}"
                ],
                "description": "通过{content.ItemIndex}实体在模板中显示内容排序"
            },
            "comment.Reference": {
                "prefix": "comme",
                "body": [
                    "{comment.Reference}"
                ],
                "description": "通过{comment.Reference}实体在模板中显示引用"
            },
            "comment.DiggGood": {
                "prefix": "comme",
                "body": [
                    "{comment.DiggGood}"
                ],
                "description": "通过{comment.DiggGood}实体在模板中显示支持"
            },
            "comment.DiggBad": {
                "prefix": "comme",
                "body": [
                    "{comment.DiggBad}"
                ],
                "description": "通过{comment.DiggBad}实体在模板中显示反对"
            },
            "comment.Id": {
                "prefix": "comme",
                "body": [
                    "{comment.Id}"
                ],
                "description": "通过{comment.Id}实体在模板中显示评论Id"
            },
            "comment.AddDate": {
                "prefix": "comme",
                "body": [
                    "{comment.AddDate}"
                ],
                "description": "通过{comment.AddDate}实体在模板中显示评论时间"
            },
            "comment.UserName": {
                "prefix": "comme",
                "body": [
                    "{comment.UserName}"
                ],
                "description": "通过{comment.UserName}实体在模板中显示评论人"
            },
            "comment.IPAddress": {
                "prefix": "comme",
                "body": [
                    "{comment.IPAddress}"
                ],
                "description": "通过{comment.IPAddress}实体在模板中显示IP地址"
            },
            "comment.Location": {
                "prefix": "comme",
                "body": [
                    "{comment.Location}"
                ],
                "description": "通过{comment.Location}实体在模板中显示IP所在位置"
            },
            "comment.Good": {
                "prefix": "comme",
                "body": [
                    "{comment.Good}"
                ],
                "description": "通过{comment.Good}实体在模板中显示支持数目"
            },
            "comment.Bad": {
                "prefix": "comme",
                "body": [
                    "{comment.Bad}"
                ],
                "description": "通过{comment.Bad}实体在模板中显示反对数目"
            },
            "comment.Floor": {
                "prefix": "comme",
                "body": [
                    "{comment.Floor}"
                ],
                "description": "通过{comment.Floor}实体在模板中显示楼层"
            },
            "comment.Content": {
                "prefix": "comme",
                "body": [
                    "{comment.Content}"
                ],
                "description": "通过{comment.Content}实体在模板中显示评论正文"
            },
            "comment.ItemIndex": {
                "prefix": "comme",
                "body": [
                    "{comment.ItemIndex}"
                ],
                "description": "通过{comment.ItemIndex}实体在模板中显示评论排序"
            },
            "sql.": {
                "prefix": "sql.",
                "body": [
                    "{sql}"
                ],
                "description": "通过 {sql.} 实体在模板中显示数据库值"
            },
            "photo.PhotoId": {
                "prefix": "photo",
                "body": [
                    "{photo.PhotoId}"
                ],
                "description": "通过{photo.PhotoId}实体在模板中显示图片Id"
            },
            "photo.SmallUrl": {
                "prefix": "photo",
                "body": [
                    "{photo.SmallUrl}"
                ],
                "description": "通过{photo.SmallUrl}实体在模板中显示显示缩略图"
            },
            "photo.MiddleUrl": {
                "prefix": "photo",
                "body": [
                    "{photo.MiddleUrl}"
                ],
                "description": "通过{photo.MiddleUrl}实体在模板中显示显示小图"
            },
            "photo.LargeUrl": {
                "prefix": "photo",
                "body": [
                    "{photo.LargeUrl}"
                ],
                "description": "通过{photo.LargeUrl}实体在模板中显示显示原图"
            },
            "photo.Description": {
                "prefix": "photo",
                "body": [
                    "{photo.Description}"
                ],
                "description": "通过{photo.Description}实体在模板中显示图片描述"
            },
            "photo.ItemIndex": {
                "prefix": "photo",
                "body": [
                    "{photo.ItemIndex}"
                ],
                "description": "通过{photo.ItemIndex}实体在模板中显示图片排序"
            },
            "navigation.PreviousChannel": {
                "prefix": "navig",
                "body": [
                    "{navigation.PreviousChannel}"
                ],
                "description": "通过{navigation.PreviousChannel}实体在模板中显示上一栏目链接"
            },
            "navigation.NextChannel": {
                "prefix": "navig",
                "body": [
                    "{navigation.NextChannel}"
                ],
                "description": "通过{navigation.NextChannel}实体在模板中显示下一栏目链接"
            },
            "navigation.PreviousContent": {
                "prefix": "navig",
                "body": [
                    "{navigation.PreviousContent}"
                ],
                "description": "通过{navigation.PreviousContent}实体在模板中显示上一内容链接"
            },
            "navigation.NextContent": {
                "prefix": "navig",
                "body": [
                    "{navigation.NextContent}"
                ],
                "description": "通过{navigation.NextContent}实体在模板中显示下一内容链接"
            },
            "pageItem.FirstPage": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.FirstPage}"
                ],
                "description": "通过{pageItem.FirstPage}实体在模板中显示首页"
            },
            "pageItem.LastPage": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.LastPage}"
                ],
                "description": "通过{pageItem.LastPage}实体在模板中显示末页"
            },
            "pageItem.PreviousPage": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.PreviousPage}"
                ],
                "description": "通过{pageItem.PreviousPage}实体在模板中显示上一页"
            },
            "pageItem.NextPage": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.NextPage}"
                ],
                "description": "通过{pageItem.NextPage}实体在模板中显示下一页"
            },
            "pageItem.CurrentPageIndex": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.CurrentPageIndex}"
                ],
                "description": "通过{pageItem.CurrentPageIndex}实体在模板中显示当前索引页"
            },
            "pageItem.TotalPageNum": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.TotalPageNum}"
                ],
                "description": "通过{pageItem.TotalPageNum}实体在模板中显示总页数"
            },
            "pageItem.TotalNum": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.TotalNum}"
                ],
                "description": "通过{pageItem.TotalNum}实体在模板中显示总内容数"
            },
            "pageItem.PageNavigation": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.PageNavigation}"
                ],
                "description": "通过{pageItem.PageNavigation}实体在模板中显示页导航"
            },
            "pageItem.PageSelect": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.PageSelect}"
                ],
                "description": "通过{pageItem.PageSelect}实体在模板中显示页跳转"
            },
            "pageItem.Attribute_Type": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.Attribute_Type}"
                ],
                "description": "通过{pageItem.Attribute_Type}实体在模板中显示类型"
            },
            "pageItem.Attribute_Text": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.Attribute_Text}"
                ],
                "description": "通过{pageItem.Attribute_Text}实体在模板中显示显示的文字"
            },
            "pageItem.Attribute_LinkClass": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.Attribute_LinkClass}"
                ],
                "description": "通过{pageItem.Attribute_LinkClass}实体在模板中显示链接CSS样式"
            },
            "pageItem.Attribute_TextClass": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.Attribute_TextClass}"
                ],
                "description": "通过{pageItem.Attribute_TextClass}实体在模板中显示文字CSS样式"
            },
            "pageItem.Attribute_ListNum": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.Attribute_ListNum}"
                ],
                "description": "通过{pageItem.Attribute_ListNum}实体在模板中显示页导航或页跳转显示链接数"
            },
            "pageItem.Attribute_ListEllipsis": {
                "prefix": "pageI",
                "body": [
                    "{pageItem.Attribute_ListEllipsis}"
                ],
                "description": "通过{pageItem.Attribute_ListEllipsis}实体在模板中显示页导航或页跳转链接太多时显示的省略号"
            },
            "tag.Attribute_TagLevel": {
                "prefix": "tag.A",
                "body": [
                    "{tag.Attribute_TagLevel}"
                ],
                "description": "通过{tag.Attribute_TagLevel}实体在模板中显示标签级别"
            },
            "tag.Attribute_TotalNum": {
                "prefix": "tag.A",
                "body": [
                    "{tag.Attribute_TotalNum}"
                ],
                "description": "通过{tag.Attribute_TotalNum}实体在模板中显示显示标签数目"
            },
            "tag.Attribute_IsOrderByCount": {
                "prefix": "tag.A",
                "body": [
                    "{tag.Attribute_IsOrderByCount}"
                ],
                "description": "通过{tag.Attribute_IsOrderByCount}实体在模板中显示是否按引用次数排序"
            },
            "tag.Attribute_Theme": {
                "prefix": "tag.A",
                "body": [
                    "{tag.Attribute_Theme}"
                ],
                "description": "通过{tag.Attribute_Theme}实体在模板中显示主题样式"
            },
            "tag.Attribute_Context": {
                "prefix": "tag.A",
                "body": [
                    "{tag.Attribute_Context}"
                ],
                "description": "通过{tag.Attribute_Context}实体在模板中显示所处上下文"
            },
            "tag.Attribute_IsDynamic": {
                "prefix": "tag.A",
                "body": [
                    "{tag.Attribute_IsDynamic}"
                ],
                "description": "通过{tag.Attribute_IsDynamic}实体在模板中显示是否动态显示"
            },
            "stl:PoweredBy": {
                "prefix": "stl:P",
                "body": [
                    "{stl:PoweredBy}"
                ],
                "description": "通过{stl:PoweredBy}实体在模板中显示PoweredBy 链接"
            },
            "stl:SiteName": {
                "prefix": "stl:S",
                "body": [
                    "{stl:SiteName}"
                ],
                "description": "通过{stl:SiteName}实体在模板中显示站点名称"
            },
            "stl:SiteId": {
                "prefix": "stl:S",
                "body": [
                    "{stl:SiteId}"
                ],
                "description": "通过{stl:SiteId}实体在模板中显示站点Id"
            },
            "stl:SiteDir": {
                "prefix": "stl:S",
                "body": [
                    "{stl:SiteDir}"
                ],
                "description": "通过{stl:SiteDir}实体在模板中显示站点文件夹，如果为总站点，值为空"
            },
            "stl:SiteUrl": {
                "prefix": "stl:S",
                "body": [
                    "{stl:SiteUrl}"
                ],
                "description": "通过{stl:SiteUrl}实体在模板中显示站点根目录地址"
            },
            "stl:RootUrl": {
                "prefix": "stl:R",
                "body": [
                    "{stl:RootUrl}"
                ],
                "description": "通过{stl:RootUrl}实体在模板中显示系统根目录地址"
            },
            "stl:CurrentUrl": {
                "prefix": "stl:C",
                "body": [
                    "{stl:CurrentUrl}"
                ],
                "description": "通过{stl:CurrentUrl}实体在模板中显示当前页地址"
            },
            "stl:ChannelUrl": {
                "prefix": "stl:C",
                "body": [
                    "{stl:ChannelUrl}"
                ],
                "description": "通过{stl:ChannelUrl}实体在模板中显示栏目页地址"
            },
            "user.UserName": {
                "prefix": "user.",
                "body": [
                    "{user.UserName}"
                ],
                "description": "通过{user.UserName}实体在模板中显示账号"
            },
            "user.DisplayName": {
                "prefix": "user.",
                "body": [
                    "{user.DisplayName}"
                ],
                "description": "通过{user.DisplayName}实体在模板中显示姓名"
            },
            "user.Email": {
                "prefix": "user.",
                "body": [
                    "{user.Email}"
                ],
                "description": "通过{user.Email}实体在模板中显示电子邮箱"
            },
            "user.Mobile": {
                "prefix": "user.",
                "body": [
                    "{user.Mobile}"
                ],
                "description": "通过{user.Mobile}实体在模板中显示手机号码"
            },
            "user.CreateDate": {
                "prefix": "user.",
                "body": [
                    "{user.CreateDate}"
                ],
                "description": "通过{user.CreateDate}实体在模板中显示注册时间"
            },
            "user.LastActivityDate": {
                "prefix": "user.",
                "body": [
                    "{user.LastActivityDate}"
                ],
                "description": "通过{user.LastActivityDate}实体在模板中显示最近一次活动时间"
            },
            "user.CreateIPAddress": {
                "prefix": "user.",
                "body": [
                    "{user.CreateIPAddress}"
                ],
                "description": "通过{user.CreateIPAddress}实体在模板中显示注册IP"
            },
            "user.Group": {
                "prefix": "user.",
                "body": [
                    "{user.Group}"
                ],
                "description": "通过{user.Group}实体在模板中显示用户组"
            },
            "user.Type": {
                "prefix": "user.",
                "body": [
                    "{user.Type}"
                ],
                "description": "通过{user.Type}实体在模板中显示用户类型"
            },
            "user.AvatarLarge": {
                "prefix": "user.",
                "body": [
                    "{user.AvatarLarge}"
                ],
                "description": "通过{user.AvatarLarge}实体在模板中显示头像（大图）"
            },
            "user.AvatarMiddle": {
                "prefix": "user.",
                "body": [
                    "{user.AvatarMiddle}"
                ],
                "description": "通过{user.AvatarMiddle}实体在模板中显示头像（中图）"
            },
            "user.AvatarSmall": {
                "prefix": "user.",
                "body": [
                    "{user.AvatarSmall}"
                ],
                "description": "通过{user.AvatarSmall}实体在模板中显示头像（小图）"
            },
            "user.login.submit": {
                "prefix": "user.",
                "body": [
                    "{user.login.submit}"
                ],
                "description": "通过{user.login.submit}实体在模板中显示登录提交按钮事件"
            },
            "user.login.redirectToRegister": {
                "prefix": "user.",
                "body": [
                    "{user.login.redirectToRegister}"
                ],
                "description": "通过{user.login.redirectToRegister}实体在模板中显示跳转到用户注册页面"
            },
            "user.login.redirectToForgetPassword": {
                "prefix": "user.",
                "body": [
                    "{user.login.redirectToForgetPassword}"
                ],
                "description": "通过{user.login.redirectToForgetPassword}实体在模板中显示跳转到找回密码页面"
            },
            "user.register.submit": {
                "prefix": "user.",
                "body": [
                    "{user.register.submit}"
                ],
                "description": "通过{user.register.submit}实体在模板中显示用户注册提交"
            },
            "user.forget.submit": {
                "prefix": "user.",
                "body": [
                    "{user.forget.submit}"
                ],
                "description": "通过{user.forget.submit}实体在模板中显示用户找回密码提交"
            },
            "request.": {
                "prefix": "requ",
                "body": [
                    "{request}"
                ],
                "description": "通过 {request.} 实体在模板中显示地址栏请求参数"
            }
        };
        var obj2 = {}
        for (var key in obj) {
            // console.log(obj[key])
            console.log(key)
            var newkey = key
            if(key.indexOf('.')>-1){
                newkey=titleCase(key)
            }
            obj2[newkey] = obj[key]
            obj2[newkey]['prefix'] = newkey
        }
        console.log(JSON.stringify(obj2))

        function titleCase(str) {

            var array = str.toLowerCase().split(".");
            for (var i = 0; i < array.length; i++) {
                if(array[i]!=''){
                    array[i] = array[i][0].toUpperCase() + array[i].substring(1, array[i].length);
                }
            }
            var string = array.join(".");

            return string;
        }
    </script>
</body>

</html>